# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-protego
pkgver=0.1.16
pkgrel=0
pkgdesc="Pure-Python robots.txt parser with support for modern conventions"
url="https://github.com/scrapy/protego"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-six"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/P/Protego/Protego-$pkgver.tar.gz"
builddir="$srcdir/Protego-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir/build/lib/:$PYTHONPATH" python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="437a52eb05d77db0d084a572a528e92ff71702ea46df794b081f8ca0338d92a89035bd4f02891ae636b8662ecd4c4e129c4e54d4267b1ea36d40df6dd616b9a0  Protego-0.1.16.tar.gz"
